
		<form class="frm1" id="form" action="<?php echo base_url($lang_url).(empty($lang_url) ? '' : '/'); ?>panel/<?php echo $controller.$method.$id; ?>" method="POST" enctype="multipart/form-data">
			<p>
				<label for="title"><?php echo lang('txt_films_form_title'); ?></label>
				<input type="text" id="title" class="size80" name="title" value="<?php echo $title;?>" placeholder="<?php echo lang('txt_films_form_title'); ?>" maxlength="100"/>
			</p>
			<p>
				<label for="poster"><?php echo lang('txt_films_form_poster'); ?></label>
				<input type="text" id="poster" class="size80" name="poster" value="<?php echo $poster;?>" placeholder="<?php echo 'URL '.lang('txt_films_form_poster'); ?>" maxlength="150"/>
				<input type="file" name="poster" value="" />
			</p>
			<p class="small">
				<label for="date_release"><?php echo lang('txt_films_form_date_release'); ?></label>
				<input type="date" id="date_release" class="sizeSmall" name="date_release" value="<?php echo $date_release;?>" placeholder="<?php echo lang('txt_films_form_date_release'); ?>" maxlength="10"/>
			</p>
			<p class="small margin-l">
				<label for="languaje"><?php echo lang('txt_films_form_languaje'); ?></label>
				<input type="text" id="languaje" class="sizeSmall" name="languaje" value="<?php echo $languaje;?>" placeholder="<?php echo lang('txt_films_form_languaje'); ?>" maxlength="20"/>
			</p>
			<p class="small margin-l">
				<label for="subtitle"><?php echo lang('txt_films_form_subtitle'); ?></label>
				<input type="text" id="subtitle" class="sizeSmall" name="subtitle" value="<?php echo $subtitle;?>" placeholder="<?php echo lang('txt_films_form_subtitle'); ?>" maxlength="20"/>
			</p>
			<p class="small margin-l">
				<label for="format_film"><?php echo lang('txt_films_form_format_film'); ?></label>
				<input type="text" id="format_film" class="sizeSmall" name="format_film" value="<?php echo $format_film;?>" placeholder="<?php echo lang('txt_films_form_format_film'); ?>" maxlength="10"/>
			</p>
			<div class="clear"></div>
			<p class="small">
				<label for="quality"><?php echo lang('txt_films_form_quality'); ?></label>
				<input type="text" id="quality" class="sizeSmall" name="quality" value="<?php echo $quality;?>" placeholder="<?php echo lang('txt_films_form_quality'); ?>" maxlength="25"/>
			</p>
			<p class="small margin-l">
				<label for="duration"><?php echo lang('txt_films_form_duration'); ?></label>
				<input type="text" id="duration" class="sizeSmall" name="duration" value="<?php echo $duration;?>" placeholder="<?php echo lang('txt_films_form_duration'); ?>" maxlength="30"/>
			</p>
		 	
		 	<p class="small margin-l">
				<label for="size"><?php echo lang('txt_films_form_size'); ?></label>
				<input type="text" id="size" class="sizeSmall" name="size" value="<?php echo $size;?>" placeholder="<?php echo lang('txt_films_form_size'); ?>" maxlength="20"/>
			</p>
			<div class="clear"></div>
			<p>
				<label for="trailers"><?php echo lang('txt_films_form_trailers'); ?></label>
				<input type="text" id="trailers" class="size80" name="trailers" value="<?php echo $trailers;?>" placeholder="<?php echo lang('txt_films_form_trailers'); ?>" maxlength="100"/>
			</p>
			<p>
				<label for="screenshots"><?php echo lang('txt_films_form_screenshots'); ?></label>
				<input type="text" class="size80" name="screenshots" value="" placeholder="<?php echo 'URL '.lang('txt_films_form_screenshots'); ?>" maxlength="100"/>
				<input type="file" name="screenshots" value="" />
			</p>
			<!-- SINOPSIS -->
			<p>
				<label for="synopsis_spa"><?php echo lang('txt_films_form_synopsis_spa'); ?></label>
				<textarea name="synopsis_spa" rows="5" cols="68" placeholder="<?php echo lang('txt_films_form_synopsis_spa'); ?>"><?php echo $synopsis_spa;?></textarea>
			</p>
			<p>
				<label for="synopsis_eng"><?php echo lang('txt_films_form_synopsis_eng'); ?></label>
				<textarea name="synopsis_eng" id="synopsis_en" rows="5" cols="68" placeholder="<?php echo lang('txt_films_form_synopsis_eng'); ?>"><?php echo $synopsis_eng;?></textarea>
			</p>
			<!-- SERVERS/URLs -->
			<p>
				<fieldset class="fs-size-big float-l">
					<legend><?php echo lang('txt_films_form_servers_urls'); ?></legend>
					<div>
						<p>
							<div class="buttons float-r">
								<a href="javascript:void(0);" class="button delete" id="btn-del-servs-urls">del</a>
								<a href="javascript:void(0);" class="button add" id="btn-add-servs-urls">add</a>
							</div>
							<select name="sel-servers" class="select float-r" id="sel-servs">
								<?php foreach ($servers as $itm) { ?>
									<option value="<?php echo $itm['id_servidor'] ?>"><?php echo $itm['nombre'] ?></option>
								<?php } ?>
							</select>
							
							<div class="clear"></div>
						</p>
						<div id="servs-urls">
							<!-- <p>
								<label class="float-l"><input type="checkbox" name="servers[]" value="" checked/>Megaupload</label>
								<select name="online[]" class="select float-r" id="sel-servs">
									<option value="0"> Online ??? </option>
									<option value="1">Si</option>
									<option value="0">No</option>
								</select>
								<input type="text" class="size90" name="sources[]" value="" placeholder="URL" maxlength="100"/>
							</p> -->
							<?php if(isset($servers_film)){	
									foreach ($servers_film as $itm) {?>
										<p>
											<label class="float-l"><input type="checkbox" id="chkd_serv" name="servers[]" value="<?php echo $itm['id']; ?>" checked/><?php echo $itm['name']; ?></label>
											<select name="online[]" class="select float-r" id="sel-servs">
												<option value=""> Online ??? </option>
												<option value="1" <?php echo ($itm['online']==1) ? 'selected' : '' ; ?>>Si</option>
												<option value="0" <?php echo ($itm['online']==0) ? 'selected' : '' ; ?>>No</option>
											</select>
											<input type="text" class="size90" name="sources[]" value="<?php echo $itm['origen']; ?>" placeholder="URL" maxlength="100"/>
										</p>
										<!-- <p>
											<label><input type="checkbox" name="servers[]" value="<?php echo $itm['id']; ?>" checked/><?php echo $itm['name']; ?></label>
											<input type="text" class="size90" name="sources[]" value="<?php echo $itm['origen']; ?>" placeholder="URL" maxlength="100"/>
										</p> -->
							<?php }} ?>
						</div><div class="clear"></div>					
					</div>		 
				</fieldset>
			</p>
			<div class="clear"></div>
			<!-- CAST -->
			<p>
				<fieldset id="fs-cast" class="fs-size-small float-l no-border">
					<legend><?php echo lang('txt_films_form_cast'); ?></legend>
					<div id="div-cast">
						<?php if(isset($cast_film)){	
								foreach ($cast_film as $itm) {?>
									<label><input type="checkbox" name="cast[]" value="<?php echo $itm['id']; ?>" checked/><?php echo $itm['name']; ?></label>
						<?php }} ?>
					</div>		 
				</fieldset>
			</p>	
			<!-- CATEGORIAS -->
			<p>
				<fieldset id="fs-categories" class="fs-size-small float-l no-border">
					<legend><?php echo lang('txt_films_form_categories'); ?></legend>
					<div id="div-categories">
						<?php if(isset($categories_film)){
								echo '<label><input type="checkbox" name="categories[]" value="48"/>R5</label>
										<label><input type="checkbox" name="categories[]" value="50"/>HDRip</label>
										<label><input type="checkbox" name="categories[]" value="49"/>DVDScreener</label>
										<label><input type="checkbox" name="categories[]" value="1"/>DVDRip</label>
										<label><input type="checkbox" name="categories[]" value="2"/>BRRip</label>
										<label><input type="checkbox" name="categories[]" value="51"/>BRRip 480p</label>
										<label><input type="checkbox" name="categories[]" value="3"/>BRRip 720p</label>';
								foreach ($categories_film as $itm) {?>
									<label><input type="checkbox" name="categories[]" value="<?php echo $itm['id']; ?>" checked/><?php echo $itm['name']; ?></label>
						<?php }} ?>
					</div>		 
				</fieldset>
			</p>		
			<div class="clear"></div>
			
	